package com.jright.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jright.po.Topic;

public interface TopicDao {

	public int publishMyTopic(@Param("title")String title, @Param("publish_no")String publish_no, @Param("introduction")String introduction);
	
	public List<Topic> teacherTopic(String publish_no);
	
	public List<Topic> myPublishTopic(String no);
	
	public Topic findTopicByTopicId(Integer topic_id);
	
	public int updateTopicStatus(@Param("status")String status, @Param("id")Integer id);
	
	public int publishTeacherTopic(@Param("title")String title, @Param("publish_no")String publish_no, @Param("introduction")String introduction);
	
	public int updateTopicIsagree(@Param("isagree")String isagree, @Param("id")Integer id);

}
